/**
 * Created by Xulu on 2014/6/10.
 */
angular.module('phonecat', ['ngRoute', 'phonecatFilters', 'phonecatServices']).
    config(['$routeProvider', function($routeProvider) {
        $routeProvider.
            when('/phones', {templateUrl: 'partials/phone-list.html',   controller: PhoneListCtrl}).
            when('/phones/:phoneId', {templateUrl: 'partials/phone-detail.html', controller: PhoneDetailCtrl}).
            otherwise({redirectTo: '/phones'});
    }]);